package cn.jbit.exception;

/**
 * 自定义异常
 */
public class CustomerException extends  Exception{

        private  int code;

        private  String message;

        private  String batchNo;

        private  String jsonStr;

        public CustomerException(String message) {
            this.message = message;
        }

        public CustomerException(String message, Throwable cause) {
            super(message, cause);
        }

        public CustomerException(String message, int code) {
            super(message);
            this.code = code;
            this.message=message;
        }

        public CustomerException(String message, int code, String batchNo) {
            this(message,code);
            this.batchNo = batchNo;
        }

        public CustomerException(int code, String message, String batchNo, String jsonStr) {
            this.code = code;
            this.message = message;
            this.batchNo = batchNo;
            this.jsonStr = jsonStr;
        }

        public CustomerException(int code, String message,Throwable throwable) {
            super(message,throwable);
            this.code = code;
            this.message = message;
        }

        public CustomerException(int code, String message, String batchNo,Throwable throwable) {
            this(code,message,throwable);
            this.batchNo = batchNo;
        }



    public int getCode() {
            return code;
        }

        public void setCode(int code) {
            this.code = code;
        }

        @Override
        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public String getBatchNo() {
            return batchNo;
        }

        public void setBatchNo(String batchNo) {
            this.batchNo = batchNo;
        }

        public String getJsonStr() {
            return jsonStr;
        }

        public void setJsonStr(String jsonStr) {
            this.jsonStr = jsonStr;
        }
}
